﻿*Recoding for analysis.

RECODE CloseParty (1=3) (2=5) (3=4) (ELSE=0) INTO Leaning.
VARIABLE LABELS  Leaning 'Leans Democrat = 3, Leans Rep = 5, True Indp = 4'.
EXECUTE.

DO IF  (Party.0=2).
RECODE DemStrength (1=1) (2=2) (ELSE=0) INTO DemocratStrength.
END IF.
VARIABLE LABELS  DemocratStrength 'Stong Dem = 1,, Weak Dem = 2, Else = 0'.
EXECUTE.

RECODE DemocratStrength (1=1) (2=2) (ELSE=0).
EXECUTE.

DO IF  (Party.0=1).
RECODE RepStrength (1=7) (2=6) (ELSE=0) INTO RepublicanStrength.
END IF.
VARIABLE LABELS  RepublicanStrength 'Strong Rep = 7, Weak Rep = 6, Else = 0'.
EXECUTE.

RECODE RepublicanStrength (6=6) (7=7) (ELSE=0).
EXECUTE.

COMPUTE PartisanID=Leaning+DemocratStrength+RepublicanStrength.
EXECUTE.

RECODE PartisanID (4=1) (3=2) (5=2) (2=3) (6=3) (1=4) (7=4) INTO PartisanStrength.
VARIABLE LABELS  PartisanStrength 'Partisan Strength (Partisan ID Folded)'.
EXECUTE.

COMPUTE PartisanID0to1=(PartisanID-1)/6.
EXECUTE.

COMPUTE PartisanStrength0to1=(PartisanStrength-1)/3.
EXECUTE.

COMPUTE Age0to1=Age/100.
EXECUTE.

COMPUTE Education0to1=(Education-1)/7.
EXECUTE.

COMPUTE Income0to1=(Income-1)/11.
EXECUTE.

COMPUTE Ideology0to1=(Ideo-1)/6.
EXECUTE.

RECODE Sex (2=0) (1=1) INTO SexM1F0.
EXECUTE.

COMPUTE AngerFeelings0to1=(AngerFeelings-1)/6.
EXECUTE.

COMPUTE AngerExpress0to1=(AngerExpress-1)/6.
EXECUTE.

COMPUTE ConvinceToChange0to1=(ConvinceToChange-1)/6.
EXECUTE.

COMPUTE GratitudeFeeling0to1=(GratitudeFeeling-1)/6.
EXECUTE.

COMPUTE GratitudeExpress0to1=(GratitudeExpress-1)/6.
EXECUTE.

COMPUTE Encouragement0to1=(Encouragement-1)/6.
EXECUTE.

*Descriptive stats.
FREQUENCIES VARIABLES=Sex Party.0 
  /ORDER=ANALYSIS.
EXAMINE VARIABLES=Age Income Education Ideo 
  /PLOT NONE 
  /STATISTICS DESCRIPTIVES 
  /CINTERVAL 95 
  /MISSING LISTWISE 
  /NOTOTAL.

*Correlations among dependent measures.
CORRELATIONS 
  /VARIABLES= AngerFeelings0to1 AngerExpress0to1 ConvinceToChange0to1
  /PRINT=TWOTAIL NOSIG 
  /MISSING=PAIRWISE.
CORRELATIONS 
  /VARIABLES= GratitudeFeeling0to1 GratitudeExpress0to1 Encouragement0to1
  /PRINT=TWOTAIL NOSIG 
  /MISSING=PAIRWISE.

*Regressions of Partisan Strength on the dependent measures.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT AngerFeelings0to1
  /METHOD=ENTER PartisanStrength0to1
  /METHOD=ENTER Age0to1 Education0to1 Income0to1 Ideology0to1 SexM1F0.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT AngerExpress0to1
  /METHOD=ENTER PartisanStrength0to1
  /METHOD=ENTER Age0to1 Education0to1 Income0to1 Ideology0to1 SexM1F0.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT ConvinceToChange0to1
  /METHOD=ENTER PartisanStrength0to1
  /METHOD=ENTER Age0to1 Education0to1 Income0to1 Ideology0to1 SexM1F0.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT GratitudeFeeling0to1
  /METHOD=ENTER PartisanStrength0to1
  /METHOD=ENTER Age0to1 Education0to1 Income0to1 Ideology0to1 SexM1F0.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT GratitudeExpress0to1
  /METHOD=ENTER PartisanStrength0to1
  /METHOD=ENTER Age0to1 Education0to1 Income0to1 Ideology0to1 SexM1F0.
REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN 
  /DEPENDENT Encouragement0to1
  /METHOD=ENTER PartisanStrength0to1
  /METHOD=ENTER Age0to1 Education0to1 Income0to1 Ideology0to1 SexM1F0.


